CREATE TABLE [dbo].[DnnProduct_CDS_DRMPermissions]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[TemplateID] [int] NOT NULL,
[permissions] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_DRMPermissions] ADD CONSTRAINT [PK_DnnProduct_CDS_DRMPermissions] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_DnnProduct_CDS_DRMPermissions_TemplateID] ON [dbo].[DnnProduct_CDS_DRMPermissions] ([TemplateID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_CDS_DRMPermissions] ADD CONSTRAINT [FK_DnnProduct_CDS_DRMPermissions_Templates] FOREIGN KEY ([TemplateID]) REFERENCES [dbo].[DnnProduct_CDS_Templates] ([ID])
GO
